[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  Function            rtrim - trims trailing blanks

  Syntax              char *rtrim(char *source);

  Prototype in        stringhk.h

  Remarks             removes trailing blanks in a string. The string
                      passed to rtrim (source) is modified.

  Return value        returns a pointer to source.

  Example             #include <stringhk.h>
                      #include <stdio.h>            /* for the printf */

                      main()
                      {
                           char msg[25] = "  Hello everyone   ";
                           printf("String [%s]\n",msg);
                           printf("rtrim  [%s]\n",rtrim(msg));
                      }

  Program output      String [  Hello everyone   ]
                      rtrim  [  Hello everyone]


See Also: atrim() ltrim()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson